using UnityEngine;

public class AirMaker : Obstacle
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    public float pushSpeed;
    void Start()
    {
        
    }
    void OnTriggerEnter2D(Collider2D other)
    {
        if(other.gameObject.layer==LayerMask.NameToLayer("Bubble"))
        {
            print("enter");
            Bubble.I.additionalSpeedY-=pushSpeed;
        }
    }
    void OnTriggerExit2D(Collider2D other)
    {
        if(other.gameObject.layer==LayerMask.NameToLayer("Bubble"))
        {
            print("enter");
            Bubble.I.additionalSpeedY+=pushSpeed;
        }
    }
    // Update is called once per frame
   
}
